package cn.tedu.kcircle.comment.front.dao.mapper;

import cn.tedu.kcircle.comment.dao.mapper.CommentMapper;
import cn.tedu.kcircle.comment.front.service.bo.CommentListItemBO;
import cn.tedu.kcircle.comment.front.service.bo.CommentStandardBO;
import cn.tedu.kcircle.common.dto.ResourceDTO;

import java.util.List;

public interface CommentFrontMapper extends CommentMapper {
    int deleteByResource(ResourceDTO resourceDTO);

    Long selectCountByResource(ResourceDTO resourceDTO);

    CommentStandardBO getStandardById(Long id);

    List<CommentListItemBO> listByResourceType(Integer resourceType);

    List<CommentListItemBO> listByAuthorId(Long authorId);
}
